package com.lz.dubbo.consumer.project.api.controller;


import com.lz.dubbo.consumer.common.domain.ResponseVo;
import com.lz.dubbo.producer.project.dubbo.service.ApiDubboService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api")
public class ApiController {

    @DubboReference(version = "1.0.0", check = false)
    private ApiDubboService apiDubboService;

    @GetMapping(value = "/dubbo")
    public ResponseVo hi() {

        return apiDubboService.getDubboInfo("param!!!");
    }


}